The joke is a pun.  To gain pounds would make someone heavy.  To say something heavily means to say it to a great degree; in large amounts, or with great force.
' ' I ' ve gained thirty pounds , ' ' said Tom heavily .