You need to turn on dbms_output.
In Oracle SQL Developer:
- Show the DBMS Output window (View->DBMS Output).
- Press the “+” button at the top of the Dbms Output window and then select an open database connection in the dialog that opens.
In SQL*Plus:
SET SERVEROUTPUT ON