HomeBrew is a simple to use package manager for Mac. Open a new console window on Mac and do the following:
Step 1: Download and install homebrew:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Step 2: Install VirtualBox an Vagrant
$ brew cask install virtualbox
$ brew cask install vagrant