Thanks everybody. I finally figured it out.
I went to my sound card setup by double clicking the volume icon in my taskbar.
Then I set the record function in my sound card to "What U Hear"
In Sonar 4, I set a tracks input channel to my sound card
In project options I set the metronome up to a wood block and to use the audio instead of the midi and to play on recording
I armed the track I had setup and hit the record button on the transport.
Wha-La, Sonar printed the metronome on the track perfectly.
Thanks again,
Paul