If it's a stranger, I would ask them something like "what kind of exercise do you do?" If they don't exercise, I say "If you have a family that needs you, don't you need to exercise instead of sitting most of the time".
If they think that's a stupid question, I respond with " I'm just responding to a stupid comment.".