"How do you do?" is a bit more formal than "How are you?" Kirk is correct, "How are You?" is something you would likely say to someone that you already knew, though it would not be improper to say it to someone you were meeting for the first time. I think it would be similar to dzien dobry / czesc.