I would suggest using Logic Pro. This will make it easy to start with your rhythm track, add the guitar track, mix it and create a high quality finished track. I would then bounce that from Logic Pro as AIFF to use in iMovie.
If you have a camcorder, use 48khz in your Logic project so this will match the sound from your camcorder, which is 48khz. (44.1 will work, but may be more challenging to sync.
I also suggest using a camcorder on a tripod. This will give you the best picture, and will be easier to sync. The built-in iSight or FaceTime cameras on a Mac are optimized for webcam and FaceTime usage. Their aim is to minimize bandwidth. So if you are not moving very much, they may shoot 12 to 15 frames per second. Then when you are active, they might shoot 25 to 30 frames per second. This variable frame rate means that it will be very difficult later to sync up your high quality sound.
At the beginning of your performance, use a hand clap or a slate so you will have a spike in the sound track of both the camera and the Logic Pro track. You can use this in iMovie to line up the tracks so they are in sync.