We examine the joint distribution of the time of ruin, the surplus immediately before ruin, and the deficit at ruin. The time of ruin is analyzed in terms of its Laplace transform, which can naturally be interpreted as discounting. We show that, as a function of the initial surplus, the joint density satisfies a certain renewal equation. We generalize Dickson's (1992) formula, which expresses the joint distribution of the surplus immediately before ruin and the deficit at ruin in terms of the probability of ultimate ruin.