Crank angle-resolved measurements of gas temperature and water vapor concentration are made during the compression stroke of an internal combustion (IC) engine with a novel diode laser absorption sensor. The temperature is determined from the ratio of optical absorption for two overtone transitions of water vapor in the intake gas mixture, and the H2O concentration is determined from this inferred temperature and the absorption for one of the transitions. The measurements sample a short-path region (6mm) of the in-cylinder gases near the spark plug, which has been modified to provide optical access. Hence, the sensor can be installed in nearly any engine via the spark plug port. Wavelength modulation spectroscopy is employed with second harmonic detection (WMS-2f) to enable the short-path measurements over a range of temperatures and pressures from 500 to 1050K and 1 to 50atm at a bandwidth of 7.5kHz. The accuracy of the sensor is validated in a static cell, giving RMS errors of less than 3% in temperature and less than 3.6% in H2O concentration over a wide range of conditions. Crank angle-resolved measurements are performed in unfired and fired engine cylinders, illustrating the potential of this sensor for investigating a range of difficult-to-model trends in current and proposed IC engine combustion schemes.