Aggressively and with preparation.
Whatever you "give up" in a gambit (typically a pawn or two, but might also be non-material factors like giving up the center), you need compensation for. For this, you need to play aggressively. The reason preparation is even more needed in gambits is because they aren't usually the objectively best lines; essentially, you are hoping to catch the opponent off-guard at some point - for this, you need to know the line better than they do.
I seldom play "true gambits" and I used to never play them...
Then I discovered how much fun they can be in blitz and also the psychological pressure to the opponent that you don't need to play your solid "mainline stuff" on them
How to play gambits?