I find that they will pupate anywhere if they have to, but as Steve said, high humidity (especially condensation) doesn't do them any good in my experience.
I used to place them on top of a light because I thought warmer would be better, but the direct contact to the heat source actually ended...