I owe $4 federal taxes. Can I still e-file my federal and state and mail in my payment or must I mail everything in?

I never owed federal tax before so am unsure of procedure to follow.  I have completed both federal and state returns and owe federal but not state.  Can I pay federal online or must I mail my federal return in order to pay the $4? Can I e-file federal and then mail check with a 1040-V and B copies of of 1099-r? Would my federal return have to be included with these documents?  Could I e-file federal and then pay IRS online somehow?