There are many different ways, the easiest is probably to partition the drive using bootcamp and then insert your ubuntu cd, hold "c" at the bootup to boot from the cd and install ubuntu on the bootcamp partition.
You can then choose the right OS by pressing option when you power on your computer.
You could also repartition the drive any way you like and boot using refit.