You're quite right about using printk, to dump specific data actually printk is the best option.
To observe parameters of particular TCP connection, you might take help of netfilter hooking. Using netfilter kernel module (http://fcns.eu/2010/02/15/netfilter-hooks/) you can track a particular connection and can check every tcp packets you desire.