While "How do you do?" will pretty much always be understood as a verbal pleasantry, "How are you doing?" would be very dependent on how you say it. "Ha ya doon?" would be a verbal pleasantry. "How are you doing?" said with somewhat exaggerated intonations and given that there is the knowledge that something has been amiss would be considered a real question looking for an answer other than "Just fine."