as I learned, "how do you do." isn't actually a question but a form of greetings that in parallel of the word "hello". As Eliot suggested, simply reply "how do you do."
However, if it is to be said as an inquiry, it would mean "how are you?"
e.g. "thank God you survived, how do you do?"
:)