Question: is it grammatically correct to say doing well?
Answer: That response only works if "well" takes on its adjectival form, meaning "in good health" or "good or satisfactory." Now, if someone asks "How are you doing?" "I'm doing well" is the correct response. "Doing" — a form of "to do" — becomes the main verb, and action verbs require adverbs.