Say 2 cars one with a 340 and the other a 440 both putting similar hp to the ground at similar road speeds.
Eg.. A Peak hp of 300 to the ground at 110 mph on 28" tires, 110 mph with 28" tires is a tire rpm of 1321 rpm. tq at ground = hp x 5252 / rpm so 1193 tq. So no matter what realistic rpm these engines make peak hp at and what tq at peak hp both will put same hp/tq to the ground.
With the large displacement difference the 440 will make peak hp at lower rpm with more tq and use a higher gear ratio than the 340 to put 300 hp and 1193 tq to the ground at 110 mph.
Equal power to ground at at same road speeds, Larger Cid = Smaller/Higher Gear ratio, Smaller Cid = Larger/deeper Gear ratio. Generally Cid gets larger, Gears get higher and vice versa.