What is the full of sentence with that phrase you want to ask?So we can understand it like this:
*"way to rub it in" means"how to emphasize or repeat an embarrassing fact" ("way" here means "how to...",it sounds "one's habitual action")
Example:Her daughter has won the first prize many time in the Olimpic so she's very proud and happy."Do you know i have a genius?" and that's way to rub it in about her happiness...
(Do you understand?)