play live synchronized with Cubase?

In a couple of weeks I have to play live with a pianist and a drummer, and I have to play the guitar(s) and the bass and may be some strings and winds parts.
I’d like to play either the bass or guitar live and record the other instruments.

The problem is the drummer may be sometimes a bit late or too fast, even if he keeps the tempo, he may shift slightly. If another player is wrong, he can make up, but it’s difficult for a drummer… so my question is

how (and may be: is it possible?) can we have a stereo track with the recorded instruments in Cubase last version that “follows” the tempo of the live?
Any help will be much appreciated ! :stuck_out_tongue:
Thanks in advance.