Heat the olive oil in a large pot over medium heat. Add the beef cubes and cook until browned on all sides, about 6 to 8 minutes. Remove the beef and set it aside.
Add the onion to the same pot and cook until softened, about 4 minutes. Stir in the garlic and cook for 1 minute more. Sprinkle the flour over the onions and stir for 1 minute to coat everything.
Slowly pour in the beef broth while stirring to avoid lumps. Return the beef to the pot along with the salt, pepper, thyme, and bay leaves. Bring the mixture to a simmer.
Add the carrots and potatoes. Cover the pot and cook on low heat for 1 hour and 15 minutes, stirring occasionally, until the beef and vegetables are tender. Remove the bay leaves before serving.