My standard reply when people begin this cr*p is to say, ‘have I ever discussed my weight with you before? No? Well I’ll not be starting now’, because my weight is not your business’ . that shuts them up.
If it’s a friend, I just change the subject, but if pushed they get told, with a smile, my weight is not their concern.