If you've never tried either bars or gels, I would get a sample pack of both and see what you like.
I use gels just before swims or runs but can eat bars before a bike since I'm not jostling around so much.