Keep the ruler in place to assist with a perfect fold. Done.

Summary:
Find a ruler. Measure the dollar bill. Divide the length by three. Fold at each third.