What does ‘sock it to’ mean?

sock it to

( vp ) To do something (unpleasant) to someone. The IRS really socked it to Margie’s father.