A 2020 meta-analysis by Grgic et al. pooling 21 studies found caffeine reliably increases muscular strength and power output. For an 80kg lifter that's roughly 240–480mg (2–4 cups of coffee) taken about 45–60 minutes before training, when blood levels peak. Skip it if you train in the evening, since caffeine's ~5–6h half-life will wreck your sleep, which is where the actual muscle is built.
Grgic, J. et al. (2020). Br J Sports Med: caffeine & strength meta-analysis.