pharmacologically speaking
Caffeine does increase heart rate and perhaps blood pressure, as do a number of other stimulants such as those found in decongestant medications. However, these drugs (and yes, in one sense, caffeine is a drug) do so only transiently, say, for the first week to a month that one drinks coffee regularly. Gradually, heart rate returns to the baseline level in most people. Caffeine will not prevent a training-induced lowering of the heart rate, but there is less data on that aspect.
There is some question as to whether caffeine will impede the mammalian dive reflex, and I believe that most serious competitors have eliminated caffeine from their diets. At the extreme end of the fitness range, caffeine probably does detract a bit from optimal apnea performance (but let's be honest, most of us are no where near the extreme end of the fitness range).
If you are used to two cups, have one or perhaps two cups the morning of your dive, but definitely don't drink three or four cups!.
If anyone is interested in this topic in more depth (no puns intended), I can send you a bibliography of scientific publications, and I believe you'll find that in general, they support what I've said here.