My guess is a macro lens if details are needed. e.g. EF/RF 100mm f/2.8
Though from what I understand, it's really more about the lighting setup and other prep work to capture the best possible images to convey great taste, freshness, etc.
All Canon cameras with interchangeable lens capability are "EOS". This includes the the EOS R-series mirrorless, the EOS M-series mirrorless, all the DSLRs and even 35mm film SLRs from 1987 onward.
My son is an executive chef. I taught him how to take photos of finished plates of food using an 80D and a Rokinon 24mm tilt-shift lens.
"I was wondering what lens would be best for food photography."
The question is too general to make a good recommendation. Anywhere from your iphone to a Hasselblad X2D.
While not quite the same, I've done quite a bit of small product "tabletop studio" photography with various Canon Tilt Shift lenses. Mostly I have used the old TS-E 45mm and TS-E 90mm, both on APS-C crop sensor and full frame cameras. Sometimes I needed to add a macro extension tube for smaller items and closer work.
The newer TS-E 50mm Macro and TS-E 90mm Macro can focus closer than the older lenses, but most food photography doesn't get anywhere close to macro magnification anyway. The newer TS-E lenses also have more adjustability... Where the old lenses had a single rotational plane, the new ones have two. This allows you to quickly and easily reorient the tilt and shift movements relation to each other as needed. The older lenses needed to be partly disassembled to make any change to the alignment of those movements. This wasn't too big a deal with small product photography because I was mostly just using the tilt movement to control the plane of focus. Occasionally with reflective items I used shift, but that was rare.
If using a crop sensor camera, for food photography a wider lens like the TS-E 24mm II might be necessary. If using a full frame camera, I imagine the old 45mm or the current TS-E 50mm Macro would be a good starting point. Even if unable to focus close enough or render the images you want, it might be good to experiment with different focal lengths on a standard "walk around" zoom, to see what works best for you
The TS-E lenses can mount directly to any of the Canon DSLRs (EF mount). If using an R-series or M-series mirrorless camera, an EF to RF or EF to EF-M adapter would be needed. All the TS-E lenses are manual focus (currently... rumors are that there may be some autofocus versions in the future). If interested in but unfamiliar with them, study up on the uses of tilt and shift lens movements.
P.S. The last time I did any food photography was a long time ago. I remember one session using 4x5" film camera to shoot ice cream products. In the studio the ice cream products would melt before we could get the shots we needed! It was Winter in Colorado, so we took everything outside and worked with flags and reflecting panels to light the product, rather than strobes and hot lights. For some of the pics I had to shoot from atop a 6 foot step ladder. That was fun!
09/26/2023: New firmware updates are available.
08/18/2023: Canon EOS R5 C training series is released.
07/31/2023: New firmware updates are available.
05/31/2023: New firmware updates are available.
05/18/2023: New firmware updates are available.
03/30/2023: New firmware updates are available.