Ruby BEGIN and END blocks

How to use ruby's BEGIN and END.