First, try this terminal command:

drutil tray eject 0

You can do this several times. If that doesn't work, and if you can boot into open firmware (with Command Option O F held down), you can type:

eject cd

If that doesn't work, and you want to open up the drive, there is a guide here, but this is a super last resort.