Gaining

Best lines when you gain

I suppose that it rather depends on whether you know that the person wants to have gained weight or not. If you do, then your knowledge of that individual person will dictate how best to tell her/him.

More generally, for people whose preference for the matter is unknown, there is much to be said for "you look well" or some other general compliment on the person's appearance.
10 years