Position your ladder beneath your first soffit vent. Climb your ladder so that you can comfortably reach the surface of your soffit vent without straining or leaning on the ladder.
Pull a strip of tape off your roll of masking tape and stick the end of your strip in the upper left-hand corner of the vent, smoothing down the strip horizontally across the vent and ripping the strip off from the roll using your fingers. The length of your tape strip does not need to be identical in width to the vent, but it's important to make sure the vent's surface is properly covered by being generous with your tape application.
Repeat Step 2 with a second strip just below this first strip. Continue adding strips of masking tape horizontally across the soffit vent until the vent's surface is completely covered.
Spray your foam. Residue may land on your vent area, but the masking tape will act as a barrier to protect its surface.
Peel off the masking tape from your soffit vent when you are finished spraying foam. The vent's surface should be clean and free of foam.