It means to inform someone or remind someone that you are superior to him or more fortunate than him in a way that is excessive to the point of rudeness. That is, you are not just pointing out your advantage, but emphasizing it in a way calculated to embarass the other person or build yourself up.