The effect of the triggered ability is mandatory. The life loss isn’t a payment; you’ll lose 3 life even if you have 3 or less life left. Unless your library is empty, you must put a card from your library into your hand.