Set up a loop in the section you are trying to record. Make it 2 measures earlier than where you want to perform, so you've got a bit of count-in.
Within the loop, one measure in until the end of the loop, set up an autopunch.
Make sure the Record option is set to overwrite or comping.
Hit the R button and away you go.