After a rain ride: While the bike is still wet, before all the grime dries and sticks, spray the bike off with a hose. Spray, not blast it off with a stream. After the bike dries, lube. Especially the drivetrain.
You may, of course, get more meticulous than this; as meticulous as you like, but for mechanical purposes, there's no need.