How do you guys detail your engine bays?

With the older cars I just spray engine degreaseing foam generously, let it sit, and then wash it off.

I'm sure there is a better (safer) way of doing it. Let me know how you guys do it!